package com.qingge.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 西西弗斯
 * @since 2022-05-09
 */
@Getter
@Setter
  @ApiModel(value = "Merchandise对象", description = "")
public class Merchandise implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("商品价格，默认为0元，是double类型")
      private Double price;

      @ApiModelProperty("商品名称")
      private String names;

      @ApiModelProperty("商品规格（默认是长宽高）")
      private String specification;

      @ApiModelProperty("商品剩余库存量")
      private Integer stock;

    private String imgSrc;


}
